<include file='Index/header'/>
<script language="javascript" type="text/javascript" src="__PUBLIC__/My97DatePicker/WdatePicker.js"></script>
<include file='Index/left'/>

<div class="content">

    <div class="header">

        <h1 class="page-title">学员信息管理</h1>
    </div>

    <ul class="breadcrumb">
        <li><a href="{:U('Index/Index')}">首页</a> <span class="divider">/</span></li>
        <li class="active">学员信息管理</li>
    </ul>

    <div class="container-fluid">
        <div class="row-fluid">

            <div class="btn-toolbar">
                <button class="btn btn-primary" onclick="window.location='__CONTROLLER__/Addstudent'"><i
                        class="icon-plus"></i>添加学员
                </button>

                <button class="btn" onclick="window.location='__CONTROLLER__/Daochu/fs/student'">导出Excel</button>
                <div class="btn-group">
                </div>
            </div>
            <div class="well well-sm">
                <form id="cx" name="cx" method="get" action="__CONTROLLER__/Student">
                    <lable>班次编号：</lable>
                    <input type="text" name="classid" placeholder="" value="{$param['classid']}"
                           style="width:100px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <lable>学员号：</lable>
                    <input type="text" name="userid" placeholder="" value="{$param['userid']}" style="width:100px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <lable>学员姓名：</lable>
                    <input type="text" name="loginname" placeholder="" value="{$param['loginname']}"
                           style="width:100px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <lable>学员级别：</lable>
                    <select name="level" id="level" style="width:100px">
                        <option value=""></option>
                        <volist name="stulb" id="vb">
                            <option value="{$vb.dict_name}">{$vb.dict_name}</option>
                        </volist>
                    </select><br/>
                    <lable>所在单位：</lable>
                    <input type="text" placeholder="" name="company" value="{$param['company']}"
                           style="width:150px">&nbsp;&nbsp;&nbsp;&nbsp;
                    <lable>身份证号码：</lable>
                    <input type="text" placeholder="" name="idcard" value="{$param['idcard']}" style="width:150px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <button type="button" class="btn btn-primary" onclick="submit()">&nbsp;&nbsp;查&nbsp;&nbsp;询&nbsp;&nbsp;</button>
                </form>


            </div>

            <div class="well" id='well2'>
                <table class="table table-striped" style='margin-top:-20px;'>
                    <thead>
                    <tr>
                        <th>#</th>
                        <th nowrap="">班次编号</th>
                        <th nowrap="">学员号</th>

                        <th nowrap="">学员姓名</th>
                        <th nowrap="">性别</th>

                        <th nowrap="">民族</th>
                        <th nowrap="">所在单位</th>
                        <th nowrap="">职务</th>
                        <th nowrap="">出生日期</th>
                        <th nowrap="">电话</th>
                        <th nowrap="">电子邮箱</th>
                        <th nowrap="">学员级别</th>
                        <th width='180'>备注</th>
                        <th nowrap="" style="width: 26px;"></th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="tinfo" id="vo">
                        <tr>
                            <td nowrap="">{$vo.id}</td>
                            <td nowrap="">{$vo.classid}</td>
                            <td nowrap="">{$vo.userid}</td>

                            <td nowrap="">{$vo.loginname}</td>
                            <td nowrap="">{$vo.sex}</td>

                            <td nowrap="">{$vo.nation}</td>
                            <td nowrap="">{$vo.company}</td>
                            <td nowrap="">{$vo.political}</td>
                            <td nowrap="">{$vo.birth}</td>
                            <td nowrap="">{$vo.telephone}</td>
                            <td nowrap="">{$vo.email}</td>

                            <td nowrap="">{$vo['level']}</td>
                            <td width='160'>
                                <div id='hd{$vo.id}' class="hd">{$vo.remark}<span id="hd3{$vo.id}" style="display:none"><a
                                        href='javascript:void(0)' onclick='hiden({$vo.id})'>收起</a></span></div>
                                <div id='hd2{$vo.id}'><a href='javascript:void(0)' onclick='show({$vo.id})'>+</a>
                                    <div>
                            </td>
                            <td nowrap="">
                                <a href="__CONTROLLER__/Studentxg/id/{$vo.id}"><i class="icon-pencil"></i></a>
                                <a onclick="return confirm('正在删除学员{$vo.loginname}学员号：{$vo.userid}，请确认')"
                                   href="__CONTROLLER__/del/lb/student/id/{$vo.id}"><i class="icon-remove"></i></a>

                            </td>
                        </tr>

                    </volist>

                    </tbody>
                </table>
            </div>


            {$page}

            <script>
                function show(id) {
                    $('#hd' + id).css({'overflow': 'visible'});
                    $('#hd2' + id).hide();
                    $('#hd3' + id).css({'display': 'block'});

                }

                function hiden(id) {
                    $('#hd' + id).css('overflow','hidden');
                    $('#hd3' + id).css({'display': 'none'});
                    $('#hd2' + id).show();
                }
            </script>


            <include file='Index/footer'/>
